package com.libra.assemble.repository.authority;

import com.libra.assemble.entity.authority.User;
import com.libra.assemble.xutil.enums.Status;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * 用户信息的数据访问接口.
 * @author Libra
 *
 */
public interface UserDao extends PagingAndSortingRepository<User, Long>, JpaSpecificationExecutor<User> {
	
	/**
	 * 登录,通过用户名取得正常的用户信息.
	 * @param loginName
	 * @return
	 */
	User findByLoginNameAndStatus(String loginName, Status status);
}
